//公司架构请求
import request from "@/utils/request"
// 获取所有部门
export function getCompany() {
    return request({
        url:'/company/department'
    })
}

// 删除公司部门接口
export function delCompany(id) {
    return request({
        url: `/company/department/${id}`,
        method:'delete'
    })
}
// 新增公司部门接口
export function addCompany(data) {
    return request({
        url:`/company/department`,
        method: 'post',
        data
    })
}
// 查询公司部门接口
export function getDeptsDetail(id) {
    return request({
        url:`/company/department/${id}`,
        
    })
}
//修改公司部门接口
export function emitCompany(data) {
    return request({
        url:`/company/department/${data.id}`,
        method: 'put',
        data
    })
}
//根据id查询企业
export function companyId(id) {
    return request({
        url:`/company/${id}`,
    })
}